package org.jeecg.modules.sistersophie.view;

import org.springframework.web.servlet.view.AbstractView;

import javax.servlet.http.HttpServletRequest;

public abstract class AbstractPdfView extends AbstractView {

    public AbstractPdfView() {
        this.setContentType("application/pdf");
    }

    protected boolean isIE(HttpServletRequest request) {
        return request.getHeader("USER-AGENT").toLowerCase().indexOf("msie") > 0 || request.getHeader("USER-AGENT").toLowerCase().indexOf("rv:11.0") > 0;
    }

}
